<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<!DOCTYPE html>
<html>
<head>
<title>登录</title>
</head>
<body>
  <form name="frm" action="status.jsp" method="post">
      <input type="text" name="txt"
        value="<%
            Cookie[] cookies = request.getCookies();
            if (cookies != null && cookies.length > 0) {
                for (Cookie cookie : cookies) {
                    if (cookie.getName().equals("txt")) {
                        out.print(cookie.getValue());
                        break;
                    }
                }
            }
        %>">
    <input type="submit" value="登录">
  </form>
  创建名称后，返回登录页面时将自动填充原名称
</body>
</html>
